<?php

// $Id: checkwhois.php

include("main.whois");
//$domain = $_POST['domname'];
$domain = $domname;
if(isset($_REQUEST['domain'])) {
	$domain = $_REQUEST['domain'];
}
$whois = new Whois($domain);
$result = $whois->Lookup();
echo "<pre>";
echo "<hr color=red>";
echo "<center>Domain Registration Details</center>";
echo "<hr color=red>";
foreach ($result[rawdata] as $value)
	{
    echo "$value \n";
	}
echo "</pre>";

?>
